package com.jjiang.bbmall.member.feign;

import com.jjiang.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;


//@FeignClient注解,声明需要调用注册中心中的服务名("bbmall-coupon")
@FeignClient("bbmall-coupon")
public interface CouponFeignService {
    //复制过来的方法路径为("/member/list"),但我们是从外部访问,所以要补全路径("/coupon/coupon/member/list")
    @RequestMapping("/coupon/coupon/member/list")
    public R memberCoupons();
}
